<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { useCounter2Store } from '../store/counter2';
const { count, doubleCount } = storeToRefs(useCounter2Store());
</script>

<template>
  <div>
    Home.vue - count: {{ count }} <button @click="count++">count++</button>
    <br />
    App.vue - doubleCount: {{ doubleCount }}
  </div>
</template>
